package com.cli.springboot2study;

import com.cli.springboot2study.test.SpringBoot2Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ImportResource;

import java.io.IOException;

@SpringBootApplication
@ImportResource("classpath:bean.xml")
public class SpringBoot2StudyApplication {

    public static ConfigurableApplicationContext configurableApplicationContext;




    public static void main(String[] args) throws IOException {
        configurableApplicationContext = SpringApplication.run(SpringBoot2StudyApplication.class, args);

        SpringBoot2Test.main();
    }

}
